package com.bbcare.nutritious.plat.service;

import java.util.List;
import java.util.Map;

import com.bbcare.nutritious.plat.entity.PtWeight;

/**
 * 孕妇体重接口
 *
 */
public interface IWeightService {
	/**
	 * 保存孕妇体重
	 * @param weight
	 * @return
	 * @throws Exception
	 */
    Map<String, Object> saveWeight(PtWeight weight)throws Exception;
    /**
     * 根据条件查询孕妇体重数据
     */
    Map<String, Object> listWeightByIdAndDate(PtWeight weight);
    /**
     * 获取体重图表数据
     * 日期-体重数据分析
     * 可以根据日期参数进行调整
     * @param weight
     * @return
     */
	Map<String, Object> getWeightChartData(PtWeight weight);
	/**
	 * 查询需要导出的体重数据
	 * @param weight
	 * @return
	 */
	List<PtWeight> exportWeightData(PtWeight weight);
    /**
     * 分页查询用户体重数据
     */
	Map<String, Object> listWeightForPage(PtWeight weight);
	/**
	 * 根据id删除体重数据
	 * @param id
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> delWeightById(String id) throws Exception;
	/**
	 * 根据userid查询用户所属租户
	 * @param userId 用户id
	 */
	String getUserTenantIdByUserId(String userId);
	/**
	 * 根据userid+testDate或id查询用户所属租户接口实现(返回实体)
	 * @param weight
	 * @return
	 */
	Map<String, Object> getWeight(PtWeight weight);
}
